import request from '@/utils/request'
//管理员查找
export function platformselect() {
  return request({
    url: '/user/platformselect',
    method: 'post',
  })
}
//管理员添加
export function platformInsert(TbPlatform) {
  return request({
    url: '/user/platformInsert',
    method: 'post',
    data: TbPlatform,
  })
}
//管理员删除
export function platformDeleted(row) {
  return request({
    url: `/user/platformDeleted/${row}`,
    method: 'post',
  })
}
//积分的操作
export function IntegralSelect(userId) {
  return request({
    url: `/user/IntegralSelect/${userId}`,
    method: 'post',
  })
}
//积分的全清记录
export function IntegralDeletes(userId) {
  return request({
    url: `/user/IntegralDeletes/${userId}`,
    method: 'post',
  })
}
//积分的单个删除
export function IntegralDelete(userId) {
  return request({
    url: `/user/IntegralDelete/${userId}`,
    method: 'post',
  })
}
//用户的查找
export function userSelect() {
  return request({
    url: `/user/userSelect`,
    method: 'post',
  })
}
//修改用户的信息，查看有没有修改信息什么的
export function userUpdate(row,row1) {
  return request({
    url: `/user/userUpdate/${row}/${row}`,
    method: 'post',
  })
}
//用户的信息删除/注销
export function userDelete(row) {
  return request({
    url: `/user/userDelete/${row}`,
    method: 'post',
  })
}
//客服的查找
export function customerSelect() {
  return request({
    url: `/user/customerSelect`,
    method: 'post',
  })
}
//客服新增
export function customerInsert(row) {
  return request({
    url: `/user/customerInsert`,
    method: 'post',
    data: row,
  })
}
//客服删除
export function customerDelete(row) {
  return request({
    url: `/user/customerDelete/${row}`,
    method: 'post',
  })
}
//客服修改
export function customerUpddate(row) {
  return request({
    url: `/user/customerUpddate`,
    method: 'post',
    data: customerUpddate,
  })
}
//用户申请成为商家
export function userMerchant(row) {
  return request({
    url: `/user/userMerchant`,
    method: 'post',
    data: row,
  })
}
//管理员查询用户申请
export function MerchantSelect() {
  return request({
    url: `/user/MerchantSelect`,
    method: 'post',
  })
}
//管理员审核用户
export function userMerchantid(row,row1,row2) {
  return request({
    url: `/user/userMerchantid/${row}/${row1}/${row2}`,
    method: 'post',
  })
}
//管理员吊销
export function Merchantrevoke(row) {
  return request({
    url: `/user/customerDelete/${row}`,
    method: 'post',
  })
}
